#include <iostream>

using namespace std;

int main()
{
  int n;
  int matrix[100][100];
  int sumRows[100], sumCols[100];
  int errorsc, errorsr, colerror, rowerror;
  
  while(true)
  {
    cin>>n;
    
    if(n==0) break;
    
    for(int i=0; i<n; i++)
    {
      sumRows[i] = sumCols[i] = 0;
      for(int j=0; j<n; j++)
      {
        cin>>matrix[i][j];
        sumRows[i]+=matrix[i][j];
      }
    }
    
    for(int i=0; i<n; i++)
      for(int j=0; j<n; j++)
        sumCols[i]+=matrix[j][i];
    
    errorsc = errorsr = 0;
    for(int i=0; i<n; i++)
    {
      if(sumCols[i] % 2 != 0)
      {
        errorsc++;
        colerror = i+1;
      }
      if(sumRows[i] % 2 != 0)
      {
        errorsr++;
        rowerror = i+1;
      }
    }
    
    if(errorsc == 0 && errorsr == 0)
      cout<<"OK"<<endl;
    else if(errorsc == 1 && errorsr == 1)
      cout<<"Change bit ("<<rowerror<<","<<colerror<<")"<<endl;
    else
      cout<<"Corrupt"<<endl;
  }
  
  return 0;
}
